package spring.controller;

import spring.service.BookService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author:CoolTiger
 * @description: TODO
 * @date:2024/04/24/23:29:45
 **/
public class App {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        ctx.registerShutdownHook();
        BookService bookService = (BookService) ctx.getBean("bookService");
        bookService.save();
        //ctx.close();
    }
}
